<?php
declare (strict_types = 1);

namespace app\admin\validate;

use think\Validate;

class AdminPassword extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        "old" => "require",
        "password" => "require|confirm",
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
        'old.require' => '请填写原密码',
        'password.require' => '请填写新密码',
        'password.confirm' => '确认密码不相符',
    ];
}
